﻿using System;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;

namespace MyVideoTek
{

    internal class Country
    {

        private JObject __jobject;
        public Country(JObject obj)
        {
            this.__jobject = obj;
        }

        public int Code
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "code"));
            }
        }

        public string nomGenre
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "$"));
            }
        }

    }
}
